package com.sparsearr.datastructures.itheima.jiami;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @Author: ZhaoTR
 * @Date: Created in 2025/4/19 17:03
 * @Description: 数字加密
 * @Version: 1.0
 */

public class JM {
    private static final Logger logger = LogManager.getLogger(JM.class);

    public static void main(String[] args) {
        int[] arr = {1, 9, 8, 3};

        for (int i = 0; i < arr.length; i++) {
            arr[i] += 5;
        }

        for (int i = 0; i < arr.length; i++) {
            arr[i] = arr[i] % 10;
        }

        for (int i = 0, j = arr.length - 1; i < j; i++, j--) {
            int temp = arr[i];
            arr[i] = arr[j];
            arr[j] = temp;
        }



        int num = 0;
        for (int i = 0; i < arr.length; i++) {
            num = num * 10 + arr[i];
            System.out.println(num);
        }
//        System.out.println(num);
    }
}
